﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using HRProject.Code.DAO;
using HRProject.Component.Base;
using System.Collections.Generic;
using HRProject.Code.DTO;

namespace HRProject.Department
{
    public partial class ManageRole : System.Web.UI.Page
    {
        private List<BLRole> lstRoles;

        public List<BLRole> LstRoles
        {
            get { return lstRoles; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            RoleDAO dao = new RoleDAO();
            BLRole filter = new BLRole();
            filter.Department = new BLDepartment();
            filter.Department.Id = Guid.Empty;
            filter.Id=Guid.Empty;
            filter.Name=string.Empty;
            lstRoles = dao.searchRoles(filter);
        }
    }
}
